package com.wzq.service.impl;

import com.wzq.dao.pojo.Wechat_user;
import com.wzq.mapper.Wechat_usermapper;
import com.wzq.service.IWechat_userService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yzc
 * @since 2022-08-31
 */
@Service
public class Wechat_userServiceImpl extends ServiceImpl<Wechat_usermapper, Wechat_user> implements IWechat_userService {
        @Autowired
        private Wechat_usermapper wechat_usermapper;

        @Override
        public boolean UnbindById(Integer id) {
                wechat_usermapper.UnbindById(id);
            return false;
        }

        @Override
        public List<Wechat_user> getAllNotMe(Integer id) {
                return wechat_usermapper.getAllNotMe(id);
        }

        // 搜索功能：按名字条件查询所有成员（模糊查询）
        @Override
        public List<Wechat_user> getMemberByUserName(String username) {
                return wechat_usermapper.getMemberByUserName(username);
        }
}


